[JBoss Seam] - Changeing Validation Messages
by paradigmza
Hello,
How do you change the validation message for a particular field.
I have a field that has to be 6 digits, and the messages says
anonymous wrote : length must be between 6 and 6
which just looks wrong, I would rather the message says
anonymous wrote : Debtor Code must be 6 digits
The Code I use is
/**
| * @return the debtorCode
| */
| @Length(min=6,max=6)
| public String getDebtorCode() {
| return debtorCode;
| }
and
<s:decorate id="debtorCodeDecoration" template="layout/edit.xhtml">
| <ui:define name="label">Debtor Code</ui:define>
| <h:inputText id="debtorCode" required="true"
| value="#{CaptureLead.debtorCode}">
| <a:support event="onblur" reRender="debtorCodeDecoration"/>
| </h:inputText>
| </s:decorate>
I have already tried
/**
| * @return the debtorCode
| */
| @Length(min=6,max=6,message="blah blah")
| public String getDebtorCode() {
| return debtorCode;
| }
|
Which does not do anything.
Any Help?
Thanks.
Sean
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041830#4041830
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041830
17 years, 8 months
[JBoss Messaging] - Re: ServiceBindingManager config is not honoured
by timfox
It seems at some time (not sure who/why) something changed (probably in remoting) so the servicebindingmanager config for the remoting connector needs to specified as a long string (see the JBAS 4.0.5 default config for more details) rather than xml.
E.g.
| <service-config name="jboss.messaging:service=Connector,transport=socket"
| delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
| <delegate-config>
| <attribute name="InvokerLocator">socket://${jboss.bind.address}:4457/?dataType=jms&serializationtype=jms&timeout=0&leasePeriod=20000&socket.check_connection=false&marshaller=org.jboss.jms.server.remoting.JMSWireFormat&unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| </delegate-config>
| <binding port="4457"/>
| </service-config>
|
So you're going to need convert the xml to the invoker locator string by hand and copy it in to the config.
I admit this is annoying - it was much easier when you could just copy and paste the xml.
I will investigate why/who changed this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041828#4041828
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041828
17 years, 8 months
[Persistence, JBoss/CMP, Hibernate, Database] - Hibernate sets FK to null
by cworley420@gmail.com
Hey,
Having a problem with updating my OrderHeader object. In the logs hibernate updates the collections then it appears it makes a second pass through all the collections and sets the fk to null.
Any idea why this behavior would occur?
-chris worley
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
2007-04-30 08:43:36,985 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Deleting collection: [com.remitdata.referralpro.common.model.order.OrderHeader.formFieldValues#180]
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2007-04-30 08:43:36,985 DEBUG [org.hibernate.SQL] update form_field_value set order_id=null where order_id=?
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] preparing statement
2007-04-30 08:43:36,985 DEBUG [org.hibernate.type.IntegerType] binding '180' to parameter: 1
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] Adding to batch
2007-04-30 08:43:36,985 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] done deleting collection
2007-04-30 08:43:36,985 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Deleting collection: [com.remitdata.referralpro.common.model.order.OrderHeader.orderAttachments#180]
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] closing statement
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041825#4041825
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041825
17 years, 8 months
[JBoss Seam] - Hibernate sets FK to null
by cworley420@gmail.com
Hey,
Having a problem with updating my OrderHeader object. In the logs hibernate updates the collections then it appears it makes a second pass through all the collections and sets the fk to null.
Any idea why this behavior would occur?
-chris worley
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
2007-04-30 08:43:36,985 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Deleting collection: [com.remitdata.referralpro.common.model.order.OrderHeader.formFieldValues#180]
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2007-04-30 08:43:36,985 DEBUG [org.hibernate.SQL] update form_field_value set order_id=null where order_id=?
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] preparing statement
2007-04-30 08:43:36,985 DEBUG [org.hibernate.type.IntegerType] binding '180' to parameter: 1
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] Adding to batch
2007-04-30 08:43:36,985 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] done deleting collection
2007-04-30 08:43:36,985 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Deleting collection: [com.remitdata.referralpro.common.model.order.OrderHeader.orderAttachments#180]
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2007-04-30 08:43:36,985 DEBUG [org.hibernate.jdbc.AbstractBatcher] closing statement
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041824#4041824
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041824
17 years, 8 months