[JBoss Seam] - Re:
by damianharvey
when you change the value of your dropdown the onchange event launches and does 2 things:
1. Updates the value of dataTransferScheme in the loginBean
2. Calls the setAuthFields method in the loginBean.
The way you have it, you are trying to pass the updated value of dataTransferScheme into #2 when the page doesn't yet have this value.
Try changing your setAuthFields method to have no parameters and instead use the value of dataTransferScheme that has been applied.
public void setAuthFields()
| {
| System.out.println("dataTransferScheme : "+this.dataTransferScheme);
| }
Also you may want to get rid of immediate=true. I can't recall if this stuffs up the application of values to the Bean (although I think that it bypassUpdates).
Cheers,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066558#4066558
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066558
18Â years, 9Â months
[JNDI/Naming/Network] Virtual host environment
by Steve
Hello,
Does anyone know how to configure a different set of JNDI environment
entries for each virtual host that uses the same WAR in JBoss? This can be
done with stand alone Tomcat using context.xml fragments under
CATALINA_HOME/conf/Catalina/www.site1.com/ROOT.xml
<Context>
<Environment description="Unique Host ID" name="siteId" type="
java.lang.String" value="site1"/>
</Context>
I can then give each virtual host it's own siteId so that it accesses the
correct rows from a shared database.
This doesn't seem to work with Tomcat embedded in JBoss. The closest I have
found so far is jboss-web.xml under WEB-INF inside the WAR, but it seems
that you can only configure environment entries for this WAR that would then
be shared across all virtual hosts that use it.
Any information would be appreciated?
Thanks,
Steve
18Â years, 9Â months