Donate Share

HTML.Template java package

Tracker: Bugs

5 Filter fails - ID: 1563837
Last Update: Settings changed ( firiazabal )

I have downloaded the sources of your project but, i
have had a problem with filters option.

I have defined a Filter class to make some replaces
before working with the template, but the class is
never called. I have checked the source and the file
just load the class at the beginin, but nothing else.

I have changed the Template.java file to call the
Filter in one case, so i am not going to put it here,
but it would be really good to fix this bug.


Fernando Iriazabal ( firiazabal ) - 2006-09-23 01:49

5

Closed

Fixed

Philip S Tellis

HTML::Template compatibility

None

Public


Comments ( 2 )




Date: 2006-09-23 12:20
Sender: firiazabalAccepting Donations

Logged In: YES
user_id=1500724

I have changed the Template.java and only the read_file
method. The modification is just to implement the SCALAR
filter. I guess if this should be made for some other
method?. in my case this is enough.

Anyway, there must have other change to implement the ARRAY
mode.

The code i've changed is from line 854 to 859. This is the
code inserted and i submit the modified file so you can see
it:

if (filters!=null && filters.length>0) {
for (int i=0;i<filters.length;i++) {
Filter f = filters[i];
if (f.format()==HTML.Tmpl.Filter.SCALAR) line =
f.parse(line);
}
}

I hope this serves to you. I'm happy with your tool


Date: 2006-09-23 05:03
Sender: bluesmoonProject AdminAccepting Donations

Logged In: YES
user_id=341836

it's technically not a bug since I never did implement
filters. The filter class you see is an example of the API
I planned on having.

If you have a patch to fix this, I can look at it although,
I don't currently have a platform on which java runs.


Log in to comment.

Attached File ( 1 )

Filename Description Download
Template.java Modified file Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2007-01-02 18:06 firiazabal
resolution_id None 2007-01-02 18:06 firiazabal
close_date - 2007-01-02 18:06 firiazabal
File Added 194842: Template.java 2006-09-23 12:20 firiazabal