[JBoss Seam] - How to use ConverterChain?
by jbuechel
Can someone tell me how to use the ConverterChain class?
My intention is to let seams EntityConverter convert my entities. If the entity to convert isn't an ejb entity though, my own Converter should be used.
Is something like this possible?
My xhtml code:
<h:selectOneMenu id="#{fwcLabelMessageKey}"
| styleClass="fwc-input-select" value="#{fwcInputProperty}">
| <s:selectItems value="#{fwcInputDataModel}" var="object"
| label="#{fwcInputDataModelLabel}"
| noSelectionLabel="#{messages[fwcLabelMessageKeyNoSelection]}" />
| <s:convertEntity />
| </h:selectOneMenu>
|
I would think of something like this:
<component name="fwcConverterChain" class="org.jboss.seam.ui.converter.ConverterChain"
| scope="conversation">
| <property name="converters">
| <value>#{fwcEntityConverter}</value>
| <value>#{org.jboss.seam.ui.entityConverterStore}</value>
| </property>
| </component>
|
|
But i know that's not the way it is..
Can i use the ConverterChain only if i build my own UIComponents?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089315#4089315
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089315
18 years, 7 months
[JBoss Seam] - Re: Security Auto-Login Question
by axismundi
I have no idea how you happen to have the NT-Login-name available in the session. In our configuration the NT-Login is passed as an attribute of the HTTP-request (and availble via request.getRemoteUser()).
I am using Seam 2 and I have added the authentication logic in my annotaded authentication class.
In components.xml I have configured
<security:identity authenticate-method="#{authenticator.authenticate}" />
|
In pages.xml I have the following config:
<page view-id="/login.xhtml">
| <action execute="#{identity.login}"/>
| <navigation from-action="#{identity.login}">
| <rule if="#{identity.loggedIn}">
| <redirect view-id="/main.xhtml"></redirect>
| </rule>
| <rule if="#{not identity.loggedIn}">
| <redirect view-id="/loginFailed.xhtml"></redirect>
| </rule>
| </navigation>
| </page>
The login.xml page is not existing. It is just a stub.
The method identity.login() should be called and itself calling authenticator.authenticate() but it isn't.
Any idea why?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089313#4089313
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089313
18 years, 7 months
[JBoss jBPM] - [Process Designer-3.1.0] Transition text position not saving
by dleerob
I upgraded my designer from v.3.0.13 to jbpm-jpdl-designer-3.1.0.sp1 this morning.
I have noticed that all my nicely aligned text on all my transitions have been reset. They now stick to the transition, and if the transition line is quite short, the text is then overlapping my nodes etc. It looks terrible.
I tried re-positioning all the text again, and saving, but as soon as I close and re-open my process again, the text is snapped back onto the transition lines, and it looks terrible again.
It seems that in 3.1.0, you cannot position your transition text where you want it? I've tried on a new process as well, and get the same result.
Is this a new feature? Or a bug? Is there anyway to allow me to position the text where I want it, to neaten up the look of the process/image, and actually have it stay that way?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089298#4089298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089298
18 years, 7 months