[JBoss Portal] - selectOneMenu localization in Identity customization
by sannegrinovero
Hi,
I would like to customize the fields shown to users during the registration phase, as described at http://docs.jboss.com/jbportal/v2.7.0/referenceGuide/html_single/#identit...
All logic is working ok, only I am not getting to I18: I've added several new properties in Identity.properties and they are picked up correctly for all InputTexts but not for the selectOneMenu.
Actually I'm not 100% I understood the reference docs; this is what I've defined in identity-ui-configuration.xml:
<ui-component name="typeofcustomer">
| <property-ref>portal.user.typeofcustomer</property-ref>
| <values>
| <value key="individual">individual</value>
| <value key="company">company</value>
| </values>
| <required>true</required>
| </ui-component>
in register.xhtml:
<h:panelGroup>
| <h:outputText value="#{bundle.IDENTITY_CUSTOMER_TYPE}" />
| <h:outputText value=" *" rendered="#{metadataservice.typeofcustomer.required}" />
| </h:panelGroup>
| <h:selectOneMenu id="typeofcustomer" value="#{manager.uiUser.attribute.typeofcustomer}"
| required="#{metadataservice.typeofcustomer.required}">
| <f:selectItems value="#{metadataservice.typeofcustomer.values}" />
| </h:selectOneMenu>
And added this to Indentity.properties:
IDENTITY_CUSTOMER_TYPE=Customer type
| IDENTITY_CUSTOMER_TYPE_INDIVIDUAL=X1
| IDENTITY_CUSTOMER_TYPE_COMPANY=X2
I would expect to see a combobox containing "X1" and "X2" but I get "individual" and "company".
My idea is that I'm failing to figure out how the property keys should be called;
honestly the "skiing" example in the docs is cool and snowy :-P but from anonymous wrote : IDENTITY_DYNAMIC_VALUE_BOARD=localized snowboarding
| IDENTITY_DYNAMIC_VALUE_SKI=localized skiing
| I can't figure out how I should call the property exactly.
Any hint please? this is Portal 2.7.0.GA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191557#4191557
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191557
17 years, 6 months
[JBoss jBPM] - Re: variable scope from a script
by tbeernot
| <process-definition>
| <start-state name='start'>
| <transition to='fork1'></transition>
| </start-state>
| <fork name='fork1'>
| <event type='node-enter'>
| <script>
| <expression>
| token.getProcessInstance().getContextInstance().setVariable("var","valueOfFork", token);"
| </expression>
| </script>
| </event>
| <transition to='state1' name='1'></transition> // the name is mandatory, otherwise there will be only one child.
| <transition to='state2' name='2'></transition> // the name is mandatory, otherwise there will be only one child.
| </fork>
| <state name='state1'>
| <event type='node-enter'>
| <script>
| <expression>
| token.getProcessInstance().getContextInstance().setVariable("var","valueOfState1", token);"
| </expression>
| </script>
| </event>
| <transition to='join1'></transition>
| </state>
| <state name='state2'>
| <event type='node-enter'>
| <script>
| <expression>
| token.getProcessInstance().getContextInstance().setVariable("var","valueOfState2", token);"
| </expression>
| </script>
| </event>
| <transition to='join1'></transition>
| </state>
| <join name='join1'>
| <transition to='end'></transition>
| </join>
| <end-state name='end'></end-state>
| </process-definition>"
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191551#4191551
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191551
17 years, 6 months
[Beginners Corner] - Setting up JBOSS 5 Server on my local computer
by maz00
Hi all,
I've just started playing around with Java (day 2) since our company (bought out) is moving away from asp.net. I've installed Eclipse and JBOSS. Following the instructions on a few 'hello world' apps works fine however, every time you make a change you have to jar.exe -cvf helloworld.war. *.jsp...etc. I'm pretty sure on a local server that's a lot of work every time you modify your .jsp (presentation layer) since when I'm doing ASP.NET or PHP I make 100+ changes to my presentation layer and all I press is refresh button in the browser and see my changes. How can I do same thing using JBOSS. How can I create a folder and copy all the necessary files (compile java classes) but keeping my .jsp pages separate so that I can (on the development server) test my .jsp pages before packaging them all together. I'm sure it's possible because on the jboss server I can go to some of the administration pages
eg. http://localhost:8080/web-console/ServerInfo.jsp and modify the ServerInfo.jsp page directly and press refresh to see my changes. Also, can someone please explain the steps to set up Eclipse with JBOSS 5? so that when I run my code in Eclipse I can view it my browser? similar to ASP.NET.
Thank you and I really appreciate your help since I've never been any more confused.
Maz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191550#4191550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191550
17 years, 6 months
[JBoss jBPM] - Re: variable scope from a script
by tbeernot
Right. The methods are present, but they are not static. So:
| token.getProcessInstance().getContextInstance().setVariable("var","val", token)
|
But that does not give me the behavior I expect.
Again I have the simple fork/join flow (start state forking state1 and state2) and each of these states has a node-enter event containing a setVariable as described above, but each setting a different value.
| S
| |
| F val="a"
| / \
| val="b" s1 s2 val="c"
| \ /
| J
| |
| E
|
When the two childern have just forked, I iterate over ALL tokens in the workflow and do a
| lList.add( lContextInstance.getVariable("var", lToken) );
|
So at the end I would expect three different values in that list.
I do have three values, but they are all the same ("b"). Since I get 3x the value associated with a child, it must actually be 3x the value of the root token. Which again means that the setVariable is not actually setting the variable in the token context, but the root token context.
Am I missing something?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191549#4191549
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191549
17 years, 6 months