Re: message that i do not understand

2009-04-16 Thread leechj

Jorge,
We ran into this exact same problem. For us, we would get this error at
random upon deployment. Sometimes when we would deploy, this error would
occur. On other times we wouldn't experience this error at all.

Today we realized that we weren't actually using anything from Equanda and
took it out of our pom.xml file. (We then had to add the chenillekit
dependency because the removal of equanda took away our chenille libraries)

After we made this change, we haven't seen the issue come up again.
Hope this helps! I'm not sure how much your project relies on Equanda, so I
don't know if the removal of it's libraries is even an option for you...


Jorge Saridis wrote:
 
 Howard, I use chenillekit and equanda.
 At the bottom of the js script generated by tapestry, I found this:
 
 Tapestry.init({validate:[[descripcionAperturaExportacion,[[string,[[missing
 key: string-format-exception]]],[required,Debe ingresar la descripción
 adicional]]],[talle,[[required,Tiene que ingresar un valor para
 Talle.]]],[moneda,[[required,Tiene que ingresar un valor para
 Moneda.]]],[nombreProducto,[[decimalnumber,'Nombre Producto' tiene
 que ser un valor numérico.],[required,Tiene que ingresar un valor para
 Nombre Producto.]]],[precio,[[decimalnumber,'Precio' tiene que ser
 un valor numérico.],[required,Tiene que ingresar un valor para
 Precio.]]],[color,[[required,Tiene que ingresar un valor para
 Color.]]],[codigoAperturaExportacion,[[string,[[missing key:
 string-format-exception]]],[required,Debe ingresar el
 código]]],[porcentajePrecio,[[decimalnumber,'Porcentaje Precio'
 tiene que ser un valor numérico.],[required,Debe ingresar el
 porcentaje del precio]]],[codigoProducto,[[string,[[missing key:
 string-format-exception]]],[required,Debe ingresar el código del
 producto,zone:[zoneProducto,zoneAperturaExportacion,zonePrecioSugerido,rubrosAlternativosZone,zoneDialogoEdicionProducto,zoneDialogoEliminacionProducto,zoneDialogoAperturaExportacion,zoneDialogoEliminacionAperturaExportacion,zoneDialogoPrecioSugerido,zoneDialogoEliminacionPrecioSugerido,dialogoRubroAlternativo,zoneResultadoBusquedaNombre],linkZone:[[nuevoProducto,zoneDialogoEdicionProducto,/iMartina/comercial/productos/edicion.nuevoproducto],[nuevoAperturaExportacion,zoneDialogoAperturaExportacion,/iMartina/comercial/productos/edicion.nuevoaperturaexportacion],[nuevoPrecioSugerido,zoneDialogoPrecioSugerido,/iMartina/comercial/productos/edicion.nuevopreciosugerido],[nuevoRubroAlternativo,dialogoAperturaExportacion,/iMartina/comercial/productos/edicion.nuevorubroalternativo],[edicionProducto,zoneProducto,/iMartina/comercial/productos/edicion.edicionproducto],[eliminacionProducto,zoneProducto,/iMartina/comercial/productos/edicion.eliminacionproducto],[edicionAperturaExportacion,zoneAperturaExportacion,/iMartina/comercial/productos/edicion.edicionaperturaexportacion],[eliminacionAperturaExportacion,zoneAperturaExportacion,/iMartina/comercial/productos/edicion.eliminacionaperturaexportacion],[edicionPrecioSugerido,zonePrecioSugerido,/iMartina/comercial/productos/edicion.edicionpreciosugerido],[eliminacionPrecioSugerido,zonePrecioSugerido,/iMartina/comercial/productos/edicion.eliminacionpreciosugerido],[edicionRubroAlternativo,rubrosAlternativosZone,/iMartina/comercial/productos/edicion.edicionrubroalternativo],[busquedaNombre,zoneResultadoBusquedaNombre,/iMartina/comercial/productos/edicion.busquedanombre]]});
 
 the first field mentioned in the template looks like this:
 
 input type=text t:id=descripcionAperturaExportacion
 t:type=TextField t:value=aperturaExportacion.descripcion
 validate=required/
 
 the messages are set in the .properties file are:
 
 descripcionAperturaExportacion-label=Descripción adicional
 descripcionAperturaExportacion-required-message=Debe ingresar la
 descripción adicional
 
 Thanks in advance
 Jorge
 
 
 On Thu, 2009-03-26 at 14:59 -0700, Howard Lewis Ship wrote:
 
 Are you using any special libraries, one that would add a Validator
 named string? That message would tend to indicate that a Validator
 emitted some initialization logic, but there was no
 Tapestry.Validator.string function to match.  A dump of the rendered
 page and the pertintent details about your field would make it easier
 to understand.
 
 
 On Thu, Mar 26, 2009 at 2:07 PM, Jorge Saridis jsari...@gmail.com
 wrote:
  Hello
  I'm getting this message: Function Tapestry.Validator.string() does
 not
  exist for field 'XXX'.
  What does it mean? The field mentioned in the message, is set in
  the .properties file with the label and required-message.
  Thanks in advance.
  Jorge
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/message-that-i-do-not-understand-tp22731178p23084495.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5 Chenillekit: @OnEvent problem with JSONObject/JSONArray

2009-04-15 Thread leechj

Okay I found out that it's not the amount of elements in the Array, but how
big the entire object is total. Is there something in the request or
response I need to look into to change the allowable size of what gets
returned from an ajax call when using this mixin?


leechj wrote:
 
 My problem is that if the JSONArray is larger than 3 elements, I get a
 client side error message stating: Error Communication with the server:
 response is undefined 
 

-- 
View this message in context: 
http://www.nabble.com/T5-Chenillekit%3A-%40OnEvent-problem-with-JSONObject-JSONArray-tp23046971p23059405.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5 Chenillekit: @OnEvent problem with JSONObject/JSONArray

2009-04-15 Thread leechj

This will be my last post on this as I was able to  find a solution!! 
My problem was related to this:
https://issues.apache.org/jira/browse/TAP5-469

A workaround in that link is given that fixes the issue.

Hopefully this will help anyone else out experiencing the same thing I was.




leechj wrote:
 
 Okay I found out that it's not the amount of elements in the Array, but
 how big the entire object is total. Is there something in the request or
 response I need to look into to change the allowable size of what gets
 returned from an ajax call when using this mixin?
 
 
 leechj wrote:
 
 My problem is that if the JSONArray is larger than 3 elements, I get a
 client side error message stating: Error Communication with the server:
 response is undefined 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5-Chenillekit%3A-%40OnEvent-problem-with-JSONObject-JSONArray-tp23046971p23060353.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 Chenillekit: @OnEvent problem with JSONObject/JSONArray

2009-04-14 Thread leechj

Hi All,
I'm trying to utilize the OnEvent Mixin to dynamically change the data in a
SelectBox when a user clicks a RadioButton.

In the function that is annotated by OnEvent, I return a JSONArray with
values and descriptions to populate my SelectBox.

My problem is that if the JSONArray is larger than 3 elements, I get a
client side error message stating: Error Communication with the server:
response is undefined 

For some reason, after I return my JSONArray and before my client function
is called, something decides that it isn't going to write my JSONArray to
the response if the array contains more than 3 elements... If it only has 3
or less elements, everything works fine!

Can anyone help me? Thanks in Advance!

-- 
View this message in context: 
http://www.nabble.com/T5-Chenillekit%3A-%40OnEvent-problem-with-JSONObject-JSONArray-tp23046971p23046971.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Maxlength Client Validation Error

2009-04-13 Thread leechj

Sorry to bring this up againbut I wasn't able to find any other topics on
this.
I just want to make sure that it's not just me. Am I doing something wrong
or is it really a requirement to mark a field as required to make
maxlength client side validation work correctly?


leechj wrote:
 
 Hi All,
 I'm running into an error on my forms when I have textfield elements that
 specify a maxlength validator but not a required validator. I get a
 javascript error of: this.requiredCheck is undefined Luckily, the server
 side validation catches it if it's too large of a value, but it would be
 nice to have his handled on the client side.
 
 My elements that have both required and maxlength work as expected.
 
 Thanks for any help!
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maxlength-Client-Validation-Error-tp22992514p23022120.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Maxlength Client Validation Error

2009-04-10 Thread leechj

Hi All,
I'm running into an error on my forms when I have textfield elements that
specify a maxlength validator but not a required validator. I get a
javascript error of: this.requiredCheck is undefined Luckily, the server
side validation catches it if it's too large of a value, but it would be
nice to have his handled on the client side.

My elements that have both required and maxlength work as expected.

Thanks for any help!


-- 
View this message in context: 
http://www.nabble.com/Maxlength-Client-Validation-Error-tp22992514p22992514.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5: tapestry-upload, allowing user to remove filename from textfield

2009-03-19 Thread leechj

I feel foolish for not being able to figure this out, but I'm trying to make
it so the user can remove the file name from the field in case they decide
they don't actually want to upload a file as a part of their form. But when
I click on the field, it just brings up a browsing box and I can't actually
remove the file from the field.
Any idea what I can do to allow a user to get rid of that file path/name?

Thanks!
-- 
View this message in context: 
http://www.nabble.com/T5%3A-tapestry-upload%2C-allowing-user-to-remove-filename-from-textfield-tp22601002p22601002.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tabindex and accesskey in BeanEditForm?

2009-03-09 Thread leechj

Thanks Luther,
But I'm still a bit new to this and can't quite figure out what to do based
on the example provided in the link you gave.

I've implemented DataTypeAnalyzer but I don't know what to do in the
identifyDataType method.
It seems like all this does is give back a type. How do I create my own
type? 
Also how do I set the tabindex and accesskey values? 
Maybe if I saw a more concrete example I'd understand it better, how did you
go about solving your problem? Any example code would be extremely helpful.

Thanks for any help you can give!

-Nate



luther.baker wrote:
 
 Take a look at Thiago's response to my *similar* question earlier today:
 
 http://www.nabble.com/t%3ATextField-and-t%3ATextArea-to22375618.html
 
 -Luther
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tabindex-and-accesskey-in-BeanEditForm--tp22380749p22413416.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tabindex and accesskey in BeanEditForm?

2009-03-06 Thread leechj

Hello,
I was wondering if there was an easy way to add properties to fields in a
BeanEditForm.
Our application needs tabindex and accesskey in all fields in order to
comply with federal rules dealing with accessibility. Is there a way to add
these 2 properties to the fields in the form or should I just create the
form by hand instead of using BeanEditForm?

Thanks for any help!


-- 
View this message in context: 
http://www.nabble.com/Tabindex-and-accesskey-in-BeanEditForm--tp22380749p22380749.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Archetype Error

2009-02-27 Thread leechj

I am also getting this error, but I didn't have it a few days ago. My
co-worker is also having this same problem. We are both new to maven and
tapestry and don't know how to fix it. Is there a problem with something on
the server we are downloading from when we type in the command?


Shuaib Cader-2 wrote:
 
 Hi there
 
 
 
 My name is Shuaib Cader. I am relatively new to web development and was
 task
 to learn how to use Tapestry. I am following the tutorial that you have
 provided on the website but I am getting the following error when trying
 to
 a project using the maven archetype. I have use the archetype before and I
 had no problems. See the error highlighted in RED. Am I doing something
 incorrect?
 
 
 
 *C:\DEV\workspacemvn archetype:create
 -DarchetypeGroupId=org.apache.tapestry -Da*
 
 *rchetypeArtifactId=quickstart -DgroupId=za.co.easypay -DartifactId=PMF
 -Dpackage*
 
 *Name=za.co.easypay.PMF*
 
 *[INFO] Scanning for projects...*
 
 *[INFO] Searching repository for plugin with prefix: 'archetype'.*
 
 *[INFO]
 *
 
 *[INFO] Building Maven Default Project*
 
 *[INFO]task-segment: [archetype:create] (aggregator-style)*
 
 *[INFO]
 *
 
 *[INFO] Setting property: classpath.resource.loader.class =
 'org.codehaus.plexus*
 
 *.velocity.ContextClassLoaderResourceLoader'.*
 
 *[INFO] Setting property: velocimacro.messages.on = 'false'.*
 
 *[INFO] Setting property: resource.loader = 'classpath'.*
 
 *[INFO] Setting property: resource.manager.logwhenfound = 'false'.*
 
 *[INFO] ***
 
 *[INFO] Starting **Jakarta** Velocity v1.4*
 
 *[INFO] RuntimeInstance initializing.*
 
 *[INFO] Default Properties File: org\apache\velocity\runtime\defaults\
 velocity.pr*
 
 *operties*
 
 *[INFO] Default ResourceManager initializing. (class
 org.apache.velocity.runtime.*
 
 *resource.ResourceManagerImpl)*
 
 *[INFO] Resource Loader Instantiated:
 org.codehaus.plexus.velocity.ContextClassLo*
 
 *aderResourceLoader*
 
 *[INFO] ClasspathResourceLoader : initialization starting.*
 
 *[INFO] ClasspathResourceLoader : initialization complete.*
 
 *[INFO] ResourceCache : initialized. (class
 org.apache.velocity.runtime.resource.*
 
 *ResourceCacheImpl)*
 
 *[INFO] Default ResourceManager initialization complete.*
 
 *[INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Literal*
 
 *[INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Macro
 *
 
 *[INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Parse
 *
 
 *[INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Include*
 
 *[INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Foreach*
 
 *[INFO] Created: 20 parsers.*
 
 *[INFO] Velocimacro : initialization starting.*
 
 *[INFO] Velocimacro : adding VMs from VM library template :
 VM_global_library.vm*
 
 *[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
 in
 any*
 
 *resource loader.*
 
 *[INFO] Velocimacro : error using  VM library template
 VM_global_library.vm
 : org*
 
 *.apache.velocity.exception.ResourceNotFoundException: Unable to find
 resource 'V*
 
 *M_global_library.vm'*
 
 *[INFO] Velocimacro :  VM library template macro registration complete.*
 
 *[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
 templates*
 
 * *
 
 *[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
 may
 NOT*
 
 *replace previous VM definitions*
 
 *[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
 be
 glob*
 
 *al in scope if allowed.*
 
 *[INFO] Velocimacro : initialization complete.*
 
 *[INFO] Velocity successfully started.*
 
 *[INFO] [archetype:create]*
 
 *[INFO]
 -*
 
 *---*
 
 *[INFO] Using following parameters for creating Archetype:
 quickstart:RELEASE*
 
 *[INFO]
 -*
 
 *---*
 
 *[INFO] Parameter: groupId, Value: za.co.easypay*
 
 *[INFO] Parameter: packageName, Value: za.co.easypay.PMF*
 
 *[INFO] Parameter: basedir, Value: C:\DEV\workspace*
 
 *[INFO] Parameter: package, Value: za.co.easypay.PMF*
 
 *[INFO] Parameter: version, Value: 1.0-SNAPSHOT*
 
 *[INFO] Parameter: artifactId, Value: PMF*
 
 *[INFO]
 *
 
 *[ERROR] BUILD ERROR*
 
 *[INFO]
 *
 
 *[INFO] Error creating from archetype*
 
 * *
 
 *Embedded error: The META-INF/maven/archetype.xml descriptor cannot be
 found.*
 
 *[INFO]
 *
 
 *[INFO] For more information, run Maven with the -e switch*
 
 *[INFO]