I have @SomeMarker annotation:
@Marker({...@somemarker})
void SomeService buildSomeService() {...}
How get SomeService by his marker (in ObjectLocator I not found like
method).
method like this: T T getService(? extends Annotation marker,
ClassT interface)
If annotation added in tapestry page it worked:
public class SomePage {
@Inject @SomeAnnot
private TypeNotRegisteredInModuleAsService field;
}
annotationProvider.getAnnotation(SomeAnnot.class) != null
If annotation added in tapestry service it not worked:
public class SomeService {
Forget add to annotation RetentionPolicy.RUNTIME. Now is worked.
If annotation added in tapestry service it not worked:
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail:
How to create services without static bind(ServiceBinder) and
buildMethod like this:
AppModule {
void contributeIdContainer(ConfigurationString config) {
config.add(someId-1);
config.add(someId-2);
}
}
InternalModule {
...
ids = idContainer.getAll();
for (String
j I develop in Ubuntu and changing all to UTF-8 fixed both problems, but on
j Windows dose not works with the JSONObject. The database is on UTF-8, all
j data is saved ok, the only problem I get is when returning data on a
j JSONObject.
Some problem with TextStreamResponse (TAPESTRY-2058). Fix
Encoding to %2F does not help. (tapestry 5.0.8)
example:
t:ac=catalog%2Fsomefile
OnEvent(activate)
RECEIVED:
String[0] == catalog;
String[1] == somefile;
NEEDED:
String[0] == catalog/somefile
-
To unsubscribe, e-mail:
F t:ac=catalog%2Fsomefile
Fix it :) t:ac=catalog%252Fsomefile - worked
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
// singleton
public IChatCoordinator buildChatCoordinator() {...}
@Scope(IOCConstants.PERTHREAD_SCOPE)
public IPerthredService buildPerthreadService(@Inject IOtherPerthredService)
{...}
---
// singleton
public class ChatCoordinator implements IChatCoordinator {
// for every call this
Why it does not work? Any idea how to make the checkbox list?
t:form t:id=testForm
t:loop source=test value=value
t:checkbox value=value.checked/
/t:loop
t:submit/
/t:form
t:loop source=test value=value
t:if test=value.checked
${value.id}
/t:if
/t:loop
---
@Persist
private
Try session.connection().commit();
o Please tell me how to rollback the current transaction when a exception was
o thrown!!!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
In 5.0.7 snapshot properties with type String[] normally worked, after
update last revision problems have begun:
java.lang.ClassNotFoundException
java/lang/String[]
Stack trace
* java.lang.Class.forName0(Native Method)
* java.lang.Class.forName(Class.java:247)
*
I have solved a problem. In Team changed setId(String id) to
setId(Object id) when ok.
F In the project there is a following:
F public interface ISimpDescT {
Fpublic T getId();
F }
F public class Team implements ISimpDescString {
F // hibernate annotations
F @DocumentId
F
In the project there is a following:
public interface ISimpDescT {
public T getId();
}
public class Team implements ISimpDescString {
// hibernate annotations
@DocumentId
@Id
@MinLength(min=2)
@MaxLength(max=50)
@Pattern(regex=[\\w-]+)
D is ur page.tml using the same encoding ??
D juz my 2c
D if so .. u may need to test ur CODEC.decode
All in UTF-8
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
KM have you tried this:
KM http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding
It does not work. In URLCodec (commons-codec-1.3) method
public String decode(String pString, String charset)
throws DecoderException, UnsupportedEncodingException
{
if (pString == null) {
F Testing in Opera9, IE6 and FireFox2 on Tomcat 5.5
Tomcat 5.5 with URIEncoding=UTF-8
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have changed a method public String decode(String pString, String charset)
for fix problem:
public String decode(String pString, String charset)
throws DecoderException, UnsupportedEncodingException
{
if (pString == null) {
return null;
}
KM now i see what you want... it is not possible
KM you can only use ASCII characters in URLs,
KM any other character has to be encoded.
Firefox URL: tag/%D0%BD%D0%BE%D0%B2%D1%8B%D0%B9+%D0%BA%D1%83 (word = новый)
After click this link, and begin tapestry debug in CODEC.codec(input)
input =
In this method
public static String urlDecode(String input) // input = новый (russian
word)
{
try
{
return CODEC.decode(input); // return ? after call this method
}
catch (DecoderException ex)
{
throw new
As upload the file through the form when is used the PageTester?
This not worked:
MapString, String fieldValues = new HashMapString, String();
FileInputStream in = new FileInputStream(file);
byte[] data = new byte[(int) file.length()];
in.read(data);
fieldValues.put(avatar, new String(data));
jscalendar requires prototype and scriptaculo libs? If is not requires,
why they appear in a web-page?
public class MyPage {
@Inject
@Path(${tapestry.jscalendar}/skins/aqua/theme.css)
private Asset themeStylesheet;
@Inject
@Path(${tapestry.jscalendar}/calendar_stripped.js)
How to keep a URL of current page (event, action and context)
that then to repeat this request?
URL: /mailmessage:trash?t:ac=400
public class MailMessage extends DefaultBase {}
In DefaultBase need get :trash and t:ac=400
-
To
Addition for previous: Page not contains Form component
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
When I call a createActionLink(send, false, 2050) in page then link
is message:send/2050. And it does not work (onSendAction(long id) is
not called). In a component ActionLink link is message.send/2050 and
it works. Below a part of a code responsible for link generation. Why
it is so?
public
Need URL encoding in Tapestry 5, some service for it?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Some package pages.articles and page Articles.java in this package. URL
http://localhost/articles/;. When need context t:pagelink
page=articles/ context=literal:param1test/t:pagelink then URL
http://localhost/articles//param1; two slashes before param1.
^
Hi! How to create my ValidationDecorator in T5, with marked required
fields when Form is first loaded on page?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
t:palette t:id=categories encoder=categoryEncoder model=categoryModel
selected=data.company.categories t:validate=required /
Client side validation don't working.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I'm using message properties files in UTF-8 with russian symbols, for
T4 it's work, but T5 it's not work - russian symbols is damaged
Also problem with @ApplicationState, after save state and back to form,
russian as well is damaged
29 matches
Mail list logo