[JBoss Seam] - problem with encoding
by nevermoreagain
Hello..
i'm new to seam =)
i use Seam-gen to generate a simple Seam project.. But there is a problem..
When i do search in MySQL database it works fine with data written in english but every time i do search some text written in my native language it's not working. This data even shown correctly in this Seam project but every time i push search button, text in <h:inputText> became unreadable.
In Seam Reference i found that i should put this in components.xml
<web:character-encoding-filter encoding="UTF-8"
override-client="true"
url-pattern="*.seam"/>
but this doesn't change anything. Does anyone know how to solve this problem ?
thank you for your aswers =)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047428#4047428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047428
18 years, 11 months
[JBoss jBPM] - Re: Contexts of variables in forked processing
by vedavyas
As u said i used the ForEachForkHandler and it works for a particular case.
This is my process definition file
| <task-node name="assign-to-admin">
| <task name="for-approval" description="team member creation request">
| <assignment pooled-actors="user1"/>
| </task>
| <transition name="does user need lead approval" to="foreachfork">
| <action class="com.techm.gisv.osl.cvsportal.actions.AdminAction"/>
| </transition>
| </task-node>
|
| <node name="foreachfork">
| <action class="com.techm.gisv.osl.cvsportal.actions.ForEachForkHandler" config-type="bean">
| <list>projects1</list>
| <as>project</as>
| </action>
| <transition name="assign" to="user-needs-lead-approval">
| </transition>
| </node>
|
| <decision name="user-needs-lead-approval" expression="#{workflow.isUserDev}">
| <transition name="yes" to="assign-to-tech-lead">
| <action class="com.techm.gisv.osl.cvsportal.actions.ActorAction"/>
| </transition>
| <transition name="no" to="action"/>
| </decision>
|
| <task-node name="assign-to-tech-lead">
| <task name="for-approval" description="team lead creation request">
| <assignment pooled-actors="#{pooledActors.pooledActor}"/>
| </task>
| <transition name="approved and assigned back to admin" to="assign-admin">
| <action class="com.techm.gisv.osl.cvsportal.actions.LeadAction"/>
| </transition>
| </task-node>
|
According to my process definition and based on my logic if the control comes to the <task node> "assign-to-tech-lead" then none of the attributes are available. So no value can be displayed in the tasklist.
how can i solve this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047424#4047424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047424
18 years, 11 months
[JBossCache] - JbossCache replication and ip multicast
by mckeno
Hi all,
As I understand, JbossCache accomplished the clustering and replication by using JGroups. JGroups in the other hand uses ip multicasting to multicast a message to all the nodes that register to a multicast address.
The default configure for ClusterConfig uses UDP, in the JGroups documentation it says:
anonymous wrote : TCP is a replacement of UDP as bottom layer in cases where IP Multicast based on UDP is not desired. This may
| be the case when operating over a WAN, where routers will discard IP MCAST. As a rule of thumb UDP is used as
| transport for LANs, whereas TCP is used for WANs.
So if I want to have my cache replicated over different server via internet (not just in LAN) I would have configure the JbossCache to use TCP protocol right? I tried to do that, but it doesn't seem to work.... could anybody help?
Before:
| <attribute name="ClusterConfig">
| <config>
| <UDP mcast_addr="228.1.2.5" mcast_port="45577"
| ip_ttl="64" ip_mcast="true"
| mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
| ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
| loopback="false"/>-->
| <PING timeout="2000" num_initial_members="3"
| up_thread="false" down_thread="false"/>-->
| ...
| ...
|
Now:
| change to
|
| <attribute name="ClusterConfig">
| <config>
| <TCP start_port="7800"/>
| <PING timeout="3000" num_initial_members="3" />
| ...
| ...
| or
|
| <attribute name="ClusterConfig">
| <config>
| <TCP start_port="7800"/>
| <TCPPING initial_hosts="localhost[7800]"
| port_range="5" timeout="3000" num_initial_members="3"
| up_thread="true" down_thread="true"/>
| ...
| ...
|
| but does not work ...
|
BTW, how does this multicast works, do I need a host or server to bind to or something?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047420#4047420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047420
18 years, 11 months