Re: Tapestry5-JQuery mixin jScrollPane

2013-01-11 Thread Emmanuel DEMEY
Hi,

I have started the migration to 5.4 two weeks ago :
https://github.com/got5/tapestry5-jquery/tree/5.4

I hope I will finish it at the end of january.

If in your app you use some code coming from tapestry-jquery.js, you will
need to change it, because tapestry-jquery.js will not exist anymore I
think :(.

Or maybe I can rewrite the tapestry-jquery file, just for the
compatibility. Which methods of tapestry-jquery.js do you use in your App ?
Ajax Request ? Zone methods ?

Manu


2013/1/10 bhorvat horvat.z.bo...@gmail.com

 sweet I will give it a try then. Any idea when will 3.3.5 be stable?

 Also now that I have you reading this thread, can you tell me when will
 tapestry-jquery adjust to the 5.4 and will this new implementation of
 javascript change something(I am assuming that it will).



 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Tapestry5-JQuery-mixin-jScrollPane-tp5719224p5719238.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




-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emman...@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey


How to write a common propertie files for specific languages.

2013-01-11 Thread Anbazhagan
Hi,

I am developing web application using tapestry. I have more than 15 tml
files in my application. I am writing a properties files for German,
English, French languages, for all the pages. In my all the pages, I have
same footer, header and user authentication labels .

So I want to avoid writing separate properties file for all the pages and
also minimize application memory size. 

Please any one say how to write a common properties files for each language.




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-write-a-common-propertie-files-for-specific-languages-tp5719254.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: How to write a common propertie files for specific languages.

2013-01-11 Thread Markus Feindler
Use app.properties

see http://tapestry.apache.org/localization.html ApplicationMessageCatalog

 
  Original-Nachricht 
 Datum: Fri, 11 Jan 2013 06:50:06 -0800 (PST)
 Von: Anbazhagan anbazhaga...@snovabits.net
 An: users@tapestry.apache.org
 Betreff: How to write a common propertie files for specific languages.
 
 Hi,
 
 I am developing web application using tapestry. I have more than 15 tml
 files in my application. I am writing a properties files for German,
 English, French languages, for all the pages. In my all the pages, I have
 same footer, header and user authentication labels .
 
 So I want to avoid writing separate properties file for all the pages and
 also minimize application memory size. 
 
 Please any one say how to write a common properties files for each 
 language.
 
 
 
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/How-to-write-a-common-propertie-files-for-specific-languages-tp5719254.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
 
 



Clientside validators returning null value to serverside validation.

2013-01-11 Thread George Christman
Hello, I have clientside validation disabled, but I'm using clientside
validators such as minlength=10 etc. I'm doing all my validation serverside,
however I'm running into an issue where I need to retrieve the offending
value on the backend in order to rebuild and return my json object. 

Example
10 digits have been entered into id=myfield with a minimum of 11 digits
required. Using t:validate=minlength=11, the app throws a serverside
validation as expected. On my backend, I temporarily build an object to hold
my values so that the form can reload and I can repopulate all the values.
This is done to handle ajaxformloop validation issues. Anyhow, within my
onValidate method, id=myfield is seen as having a null value, thus the
value never makes it into my holder object which ultimately never makes it
back into my afterRender json object. 

Does anybody have any thoughts on this?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Clientside-validators-returning-null-value-to-serverside-validation-tp5719258.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: Clientside validators returning null value to serverside validation.

2013-01-11 Thread George Christman
After thinking through this issue much more deeply, I believe tapestry is
behaving as expected keeping bad data out of my defined objects. I think
I'll just need to rethink my approach. Perhaps there is a way to pull the
bad value from the validation tracker?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Clientside-validators-returning-null-value-to-serverside-validation-tp5719258p5719259.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: [ANNOUNCE] FlowLogix Tapestry JEE Integration Library, version 1.2.1

2013-01-11 Thread Magnus Kvalheim
Thanks and happy new year to you too.
Congrats, looks very impressive - will look forward to experiment.

Cheers and good weekend
Magnus

-sent from mobile
Den 11. jan. 2013 17:25 skrev Lenny Primak lpri...@hope.nyc.ny.us
følgende:

 Happy New Year,

 We are pleased to announce a major update to FlowLogix Tapestry LIbrary,
 Version 1.2.1

 The library is available from the Maven Central repository.
 Library Page :http://code.google.com/p/flowlogix/wiki/TapestryLibrary
 Project Page: http://code.google.com/p/flowlogix

 Major New in this release:

 - CDI support is turned on by default
 - Tynamo / Shiro security, including Annotations, now work in EJBs and CDI
 beans
 - New Ajax loading spinner mixin
 - Using @EJB for remote calls in Tapestry
 - Automatic pinging of SFSBs from Tapestry context

 Released under the Apache v2 License

 -
 Major Features

 New Tapestry annotations such as @AJAX for automated session tracking and
 graceful degradation
 Session tracking with automatic redirection to login page, even from AJAX
 requests, if required
 Form submits from the browser history are handled properly, automatically,
 instead of throwing exception to the user
 Components including DynImg, SessionMonitor and Login
 Mixins including DisableAfterSubmit, DeferZoneUpdate, AjaxLoadingSpinner,
 and UpdateEvent
 Use @EJB annotation in Tapestry objects, including Stateful session beans
 and bridge Tapestry and JEE
 CDI (Context and Dependency Injection) Support - Thanks to Magnus Kvalheim
 Use tapestry-jpa with multiple databases easily with PersistenceRegistry
 Improved Tapestry DateField calendar functionality
 Bridges Security between Tapestry-Security/Shiro, EJBs and REST Services
 Create GWT Components and use them in Tapestry pages / components with
 GwtSupport
 End-to-End integration with GWT and SmartGWT
 Override Tapestry Ajax highlight colors easily with a mixin
 Automatic wait cursor while waiting for Ajax request (ZoneLoadingSpinner
 mixin)
 build-core, a pre-made Maven POM parent for Tapestry and GWT to work with
 JEE
 Skinny WAR support, deploy-on-save support for Glassfish and NetBeans
 Runtime Environment
 The library will run on Java 7+ and in any Servlet or JEE container
 Some more advanced features require Servlet 3.0 and a full JEE container
 such as Glassfish.





Re: Tapestry5-JQuery mixin jScrollPane

2013-01-11 Thread bhorvat
I dont really use anything from tapestry-jquery.js

Most of the js code that is related to tapestry is something like

$('#someZoneID').bind(Tapestry.ZONE_UPDATED_EVENT, function() { 
}); 

the rest is just normal js/jquery code

So basically you plan to have it ready by the time tapestry.5.4 is ready? 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry5-JQuery-mixin-jScrollPane-tp5719224p5719261.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



zoneManager keeps being null

2013-01-11 Thread sommeralex
Hello, , 

I have a wired problem. My ZoneManager keeps being null:

JS:

function updatePage(response){
alert (id:  + zoneId);
alert (urlSetMsgPositionAndSize);
var zoneManager = Tapestry.findZoneManagerForZone(zoneId); 

alert (zone  + zoneManager);
zoneManager.updateFromURL(urlSetMsgPositionAndSize); 
}

alert zone gives zone null, but urlSetMsgPositionAndSize is
/message/createmessage3:setmsgpositionandsize?t:ac=90

and alert of alert (id:  + zoneId); is [object HTMLdivelement]

my js loader functions:

function initializeOnLoad(centerX, centerY, _scopeRadius,
_minMsgScopeInMeters, _maxMsgScopeInMeters, _urlSetMsgPositionAndSize,
_zoneId) {
google.maps.event.addDomListener(window, 'load', initialize(centerX,
centerY, _scopeRadius, _minMsgScopeInMeters, _maxMsgScopeInMeters,
_urlSetMsgPositionAndSize, _zoneId));   
}

function initialize(centerX, centerY, _scopeRadius, _minMsgScopeInMeters,
_maxMsgScopeInMeters, _urlSetMsgPositionAndSize, _zoneId) {
 
var mapOptions = {
zoom: 12,
center: new google.maps.LatLng(centerY, centerX),
mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  
  map = new google.maps.Map(document.getElementById(map_canvas),
mapOptions);
  urlSetMsgPositionAndSize = _urlSetMsgPositionAndSize;
  
  alert (urlSetMsgPositionAndSize);
  
  zoneId = _zoneId;
  
  scopeRadius = _scopeRadius;
  minMsgScopeInMeters = _minMsgScopeInMeters;
  maxMsgScopeInMeters = _maxMsgScopeInMeters;

  google.maps.event.addListener(map, 'dragend', onMapDragEnd); 
  
  google.maps.event.addListenerOnce(map, 'idle', function(){
  onSlide(scopeRadius);
});
  
  setMarker(map.getCenter());
}

my java class has a 

@InjectComponent
private Zone updateZone;

which is a parameter for my JS call:

Link linkSetMsgPosAndSize =
componentResources.createEventLink(setMsgPositionAndSize);
javaScriptSupport.addScript(initializeOnLoad(%s, %s, 
%s,%s,%s,'%s',
%s);, groupCenter.getCentroid().getX(), groupCenter.getCentroid().getY(),
group.getMessageRadius(), group.getMinMessageRadius(),
group.getMaxMessageRadius(), linkSetMsgPosAndSize.toURI(),
updateZone.getClientId());


i did the same for another page where it is working. but here it keeps
saying that the zoneManager is null. tge tapestry page itself shows the
error message:

updateZone does not have associated Tapestry.ZoneManager object.




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/zoneManager-keeps-being-null-tp5719262.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