[JBoss Seam] - <h:selectOneListBox> & <s:convertDateTime>
by pdepaepe
Hello,
I have to offer 3 dynamic dates on a selectOneListbox.
This code:
<h:selectOneListbox id="start" value="#{sV.start}" styleClass="sessionInput">
| <s:convertDateTime pattern="MM/dd/yyyy"/>
| <f:selectItems value="#{sV.availableStarts}" />
| </h:selectOneListbox>
Render:
<select id="starting:start" name="starting:start" size="3" class="sessionInput">
| <option value="07/25/2007">Wed Jul 25 09:00:31 CEST 2007</option>
| <option value="07/26/2007">Thu Jul 26 09:00:31 CEST 2007</option>
| <option value="07/27/2007">Fri Jul 27 09:00:31 CEST 2007</option>
| </select>
So we can see that the pattern of selectItems is correctly set on value. But when i try to validate my form, <h:message/> return that the data is not a correct option.
Which is strange as this code works :
<h:inputText id="start" value="#{sV.start}" required="true" styleClass="sessionInput">
| <s:convertDateTime pattern="MM/dd/yyyy"/>
| <a:support event="onblur" reRender="startDecorate"/>
| </h:inputText>
| <s:selectDate for="start">
| <h:graphicImage url="img/dtpick.gif" style="margin-left:5px"/>
| </s:selectDate>
|
Any idea about this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067054#4067054
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067054
18Â years, 9Â months
[Remoting] - Bad password
by martin ganserer
Hi,
I am trying to get an application working that communicates between JBOSS server and a client via HTTP. Basically this works fine. But now I am facing a problem.
I have defined a simple security domain that is used by my application.
After introducing this security domain I get following exception:
| 2007-07-24 16:42:03,612 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[user, timerecorder]
| 2007-07-24 16:42:03,612 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[timerecorder]
| 2007-07-24 16:42:03,612 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Bad password for username=null
| 2007-07-24 16:42:03,612 DEBUG [org.jboss.ejb3.security.Ejb3AuthenticationInterceptor] Authentication failure
| javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
|
This is strange as my client provides proper credentials!
| env.put(InitialContext.PROVIDER_URL, "http://myhost/invoker/HAJNDIFactory");
| env.put(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
| env.put(InitialContext.SECURITY_PRINCIPAL, "username");
| env.put(InitialContext.SECURITY_CREDENTIALS, "password");
| env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
|
| try
| {
| ctx = new InitialContext(env);
| }
| catch (NamingException e1)
| {
| e1.printStackTrace();
| }
|
The LoginModule seams to be correct as it works when I use
org.jboss.security.jndi.JndiLoginInitialContextFactory for example!
Do I miss something? Thank you for helping me!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067050#4067050
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067050
18Â years, 9Â months
[JBoss Portal] - Not able to create dashboard and editpage contents When i tr
by PVApparao
When i tried to deploy jboss-portal2.6 with mysql database, Portal deployment was fine and it was able to create default portal dashboard and editpage contents.
When i tried to deploy jboss-portal2.6 with oracle10g database, it was able to create default portal but was unable to create the dashboard and editpage contents.
These are my configurations
JBoss-4.0.5GA is my Appserver
Oracle10g is the DB
Jboss-Portal2.6
my portal-ds.xml
<local-tx-datasource>
<jndi-name>PortalDS</jndi-name>
<connection-url>jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ora-web-rac1d.am.health.ge.com)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=ora-web-rac2d.am.health.ge.com)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=ora-web-rac3d.am.health.ge.com)(PORT=1521))(LOAD_BALANCE=yes)(FAILOVER=true))(CONNECT_DATA=(SERVICE_NAME=devag)(FAILOVER_MODE=(TYPE=SELECT)(RETRIES=180)(DELAY=5))))</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>ITConnect</user-name>
ITConn3ct
</local-tx-datasource>
Can any one help me why is it so happening only with oracledb
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067049#4067049
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067049
18Â years, 9Â months