[JBoss Portal] - Preferences localization
by syllant
Hi,
I don't manage to localize portlet preferences.
I've set resource-bundle and supported-locale in portlet.xml but in administration page, I see : LocalizedString[value='xxx',defaultLocale=en].
Besides, bundles are defined in french and english, administrator is configured with french locale and I don't understand why default locale should be english...
Note that both bundles are correctly loaded since I see LocalizeString objects when debugging ContainerPreferencesInfo.
portlet.xml :<portlet>
| <portlet-name>X</portlet-name>
| <portlet-class>X</portlet-class>
| <resource-bundle>i18n/PortletMessages</resource-bundle>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>help</portlet-mode>
| </supports>
| <portlet-preferences>
| <preference>
| <name>xxx</name>
| <value>some value</value>
| </preference>
| </portlet-preferences>
| <supported-locale>fr</supported-locale>
| <portlet-info>
| <title/> <!-- Dynamically generated -->
| </portlet-info>
| </portlet>
|
WEB-INF/classes/i18n/PortletMessages_en.properties (same for _fr) :javax.portlet.preference.name.xxx = Some name
| javax.portlet.preference.description.xxx = Some description
|
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106660#4106660
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106660
18 years, 8 months
[JBoss jBPM] - a foreach algorithm
by starbuxman
Hello,
Is there a way to have a foreach type of construct? In plain 'ol JBPM JPDL (not BPEL)?
More specifically, I want to be able to pass in (say) a java.util.List as a process variable and have it create new branches for each obect in the node and put the object as a process variable in that branch. So,
List carIds =Arrays.asList(1,2,3,4) ;
yeilds 4 execution paths of the same 'node' (be it a task-node, or a sub process node (!)) and have those nodes execute with a unique 'carId' variable. Thus, each, say, task-node would be queued up and waiting. If you had 4 people hitting a queue list, theyd see 4 new things to do (whatever it is) and 4 people could do the work in the time of 1. They'd parallelize.
Ideally, the branches of execution would join and then the flow would continue from there.
Has anyway seen a way to do this? I know these sorts of contstructs are supported in some ways, but I'd love to know how? Is there some sort of Action or class I can use?
Thanks in advance,
Josh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106659#4106659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106659
18 years, 8 months