How set css class or style in active link?
Hello All,
I have one link what generated 4-5 tab names..
<div class="news_btt">
<a4j:repeat value="#{NewsList.listMenu}" var="mlist">
<h:outputLink id="menulink" value="#{facesContext.externalContext.request.contextPath}/mainpages/index.jsf">
<p><h:outputText id="txt" value="#{mlist.categoryName} "/></p>
<f:param name="code" value="#{NewsList.code}"/>
<f:param name="newsId" value="#{mlist.newscategoryId}"/>
</h:outputLink>
</a4j:repeat>
</div>I need when click in the link set active to
.active_lnk {
background-image:url(../design/newsbg_over.gif);
}what can i know who is active? link is one and menus list size can be different.
Edited by: armen on Oct 2, 2009 5:46 AM
Several ways.
<h:outputLink styleClass="#{mlist.styleClass}">
<h:outputLink styleClass="#{mlist.active ? 'active_lnk' : ''}">
<h:outputLink styleClass="#{mlist.newscategoryId == param.newsId ? 'active_lnk' : ''}">
Similar Messages
-
Setting CSS Class for a Text Input Item when the disable property set to true
Hi,
i have OAF page and the item style is Message text input and i have set the disable property is TRUE using SPELL.
i want to display the value is BOLD for the item. so i set the CSS class for the item to OraTipLabel,OraDataText etc using item property or in process request also. the value is not setting BOLD.
the field is gery out and frozen and it is not displaying BOLD.
Please advise for the same.
Thanks
SreekanthHi Avaneesh,
It is still not working for me.
Still waiting for some pointers
Anas. -
Set CSS class in text field ?
I understand setting text formats with setTextFormat like
bold,
underline, etc..
But is there a way to set a CSS class to a range of text in a
text field?
I'm fearing that there is not.
SunnyExample code attached. Just put a dynamic text field on the
stage and give it an instance name 'myTextField_txt'. -
Setting CSS Style Class dynamically based on Responsibility
Hi Guys,
Is there an elegant way of setting css class in all items of a page based on responsibility? I've seen that there is a way on attributes like readOnly, disabled and rendering thru function security. How about the other attributes like css class? I even tried PVO, hahaha...but then I read, it doesn't apply to css class... :-)
Guys, please help! Need this.. It'll save lots of time writing the code programmatically if it can be set as SPEL. hmmmmm...
HElp help help! Thanks in advance!maeve ,
You cannot be saved from writing code :), basically based on responsibility, set the bean properties in process request, there will be not much code !
--Mukul -
When defining up a style for a page group, is there any way to set it so that when you hover over a hyperlink the link changes colour or becomes underlined.
I can do it by using an html portlet and adding CSS classes within style tags but I would rather set it up using portlet if possible.
Cheers,
Steven.The easiest way to do it, is as you described below with CSS. I suggest creating an unstructured UI template and placing the CSS in there (this code is read first when generating a page). Don't put anything in the body of this template except the oracle #BODY# tag.
Then apply this UI template to your pages and all links on those pages should display the CSS hover attribute. -
Dear Friends,
I am using Apex 4.1. i have made a below CSS class. i just want to know where i have to paste the below code and from where i have to call it and how?
I have written this in PAGE Properties-->HTML Header
<style type="text/css">
myclass
width:200px;
color:orange;
background-color:#CCCCFF;
</style>
calling above on field --- > on HTML Table Cell Attributes. class="myclass"
but it is not working. Please help me where i am doing wrong. Thanks in advance.
Regards
KamranHi Jozef,
Thank you so very much for you kind help and consideration on the said issue.
The issue is resolved.
i just copied and pasted ur code. now its working. now i have ur email. if u dont mind could i send u mail directly at ur email address if any issue.
Thanks once again.
Regards,
Kamran -
How to set inner glow in style ?
I create a style with DropShadowEffect which the shadow of the button is outer glow. However i want to did something when MouseOver, there is inner glow on the button. Anyone have idea on how to do it on style ?Thank you.
<Style x:Key="ButtonStyleTest" TargetType="{x:Type Button}">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True">
<Setter Property="Background" Value="Black"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect ShadowDepth="3" Direction="200" Color="#ffffff" Opacity="1" ></DropShadowEffect>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="<strong>IsMouseOver</strong>" Value="True">
<Setter Property="Background" Value="Blue"/>
</Trigger>
</Style.Triggers>
</Style>You could do this.
<Window x:Class="WpfApplication3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="150" Width="525"
Background="LightGray">
<Window.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Foreground" Value="White"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border BorderThickness="1" ClipToBounds="True">
<Border Background="Transparent" BorderBrush="Black"
BorderThickness="2" Margin="-2">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
<Border.Effect>
<DropShadowEffect ShadowDepth="0" BlurRadius="10" Color="Blue"/>
</Border.Effect>
</Border>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<Button Content="Button"
Width="150"
Height="35"
FontSize="12"
FontWeight="Bold">
</Button>
</Grid>
</Window>
Developing is part of being a developer. -
Set the class of a paragraph style to export in HTML
How, in AppleScript, set the class of a paragraph style to export in HTML?
I try with "style export tag map", but doesn't works!
Thank'sI found a way
tell application "Adobe InDesign CS6"
tell document 1
tell paragraph style 2
--get count of style export tag map
tell style export tag map 1 -- HTML , 2 = PDF
--get export class
--get export tag
set export tag to "H1"
set export class to "blue"
end tell
end tell
end tell
end tell
and its works
but thanks for help to use the class "style export tag map" -
Need an answer to my question: How do you get css class to appear in the wysiwyg editor? The only option is "clear class".
Liam,
If it's not supported there, then where can I access the css and do you have any recommendations for a simple app to change the css style? -
How do I assign a css class based on spry data?
I need to assign a css class based on the value of spry data. IOW - I need to do a calculation on two values and assign a class to that <tr> if the resulting value if > 0. Is it possible to plug spry data into php? Is there a better way to go about doing this? Spry may have a function that will hide or style data based on the value of that data, but I can't find it.
I think I need to provide better information. I currently have:
<tbody spry:repeatchildren="JSCC_Courses" spry:choose="choose" >
<tr spry:when="'{method}' == 'WEB'" style="background-color: #fffdc7;">
<td>{callno}</td>
<td>{rubric}</td>
<td>{session}</td>
<td>{hours}</td>
<td>{title}</td>
<td>{days}</td>
<td>{time}</td>
<td>{room}</td>
<td>{instructor}</td>
<td>{seats}</td>
<td>{location}</td>
</tr>
<tr spry:when="'{method}' == 'VDC'" style="background-color: #cbffc7;" >
<td>{callno}</td>
<td>{rubric}</td>
<td>{session}</td>
<td>{hours}</td>
<td>{title}</td>
<td>{days}</td>
<td>{time}</td>
<td>{room}</td>
<td>{instructor}</td>
<td>{seats}</td>
<td>{location}</td>
</tr>
<tr spry:default="default">
<td>{callno}</td>
<td>{rubric}</td>
<td>{session}</td>
<td>{hours}</td>
<td>{title}</td>
<td>{days}</td>
<td>{time}</td>
<td>{room}</td>
<td>{instructor}</td>
<td>{seats}</td>
<td>{location}</td>
</tr>
</tbody>
I now need to add a class to the <tr> if the {seats} > 0. I'm having trouble conceptualizing how this works in conjunction with my current spry:whens. -
How to let Trinidad Tag use outside css classes instead of skin?
In my project, we asked vendor company to create the UI and css of the whole web application. We are using Trinidad in the project, trinidad use skin to customize the look and feel of the page. Since we have already had a set of css classes, we don't want to apply these css classes to the trinidad skin one by one. Is that a solution to achieve that?
Can we now use jdk 1.5 with Studio Creator? I tried setting the AS_JAVA in
C:\Sun\Creator\SunAppServer8\config\asenv.bat
set AS_JAVA=C:\Program Files\Java\jdk1.5.0_04
however in the help about still says its running 1.4
There must be someway to use 1.5 with the new version of Creator or no?
R
S -
How do I create more than one CSS style for text links?
Hello,
Just like the title says, I need help with creating more than one CSS text link style in Dreamweaver CS4. For instance, I want the navigation on the website I'm building to have a different text link style than a link in some part of the body copy. I've been playing with Dreamweaver for a while and can't find any way to do this. If it's even possible to do this, I would really appreciate any help.Yes it is possible but as you have failed to provide a valid link to your site, I will tell you in general Terms:
1) First create a class or an ID to to your Nav bar;
2) Now style your navbar in such a way that these styles will only apply to your nav bar. To do this, you start your style by doing something like this:
ul#vavigation {.........}
ul#navigation a {.........}
ul#navigation a:hover {.........}
ul#navigation li {.........}
your html code might look like this:
<ul id="navigation">
<li><a href="#">Home</a></li>
etc etc .........................
</ul>
hth -
How to get the list of Group set in each Users in MS Active Directory
Hi. I would like to know if you know how to get the set group of each user in Active Directory?
We have this sample code
String INITCTX ="com.sun.jndi.ldap.LdapCtxFactory";
//String MY_HOST = "ldap://myserver/ou=dev,dc=test,dc=com,dc=ph";
String MY_HOST ="ldap://myserver.dev.test.com.ph:389/dc=dev,dc=test,dc=com,dc=ph";
String strUsername,strPassword;
try
strUsername = Request.getParameter("username").toLowerCase().trim();
strPassword = Request.getParameter("password").toLowerCase().trim();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
env.put(Context.PROVIDER_URL, MY_HOST);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL,strUsername+"@dev.lst.com.ph");
env.put(Context.SECURITY_CREDENTIALS, strPassword);
After validating the User Name and Password the next task is to Retrieve the group list of the User.Nope I want the log-in user to retrieve its Group where he is belong. I have this following code
strUsername = Request.getParameter("username").toLowerCase().trim()+"@dev.test.com.ph";
strPassword = Request.getParameter("password").toLowerCase().trim();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
env.put(Context.PROVIDER_URL, MY_HOST);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL,strUsername);
env.put(Context.SECURITY_CREDENTIALS, strPassword);
// enable tracing
env.put("com.sun.naming.ldap.trace.ber", System.err);
// Create the initial context
DirContext initCtx = new InitialDirContext(env);
// Get the target context
DirContext targetCtx = (DirContext)initCtx.lookup("");
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
// Perform the search on the target context
NamingEnumeration enum = targetCtx.search("","(userPrincipalName="+strUsername+")",constraints);
javax.naming.directory.Attributes attrs;
NameClassPair item;
String[] attrIds = new String[]{"MemberOf"};
// For each answer found, get its "Groups" attribute
// If relative, resolve it relative to the target context
// If not relative, resolve it relative to the initial context
while (enum.hasMore()) {
item = (NameClassPair)enum.next();
Out.println(item);
attrs = targetCtx.getAttributes(item.getName(), attrIds);
Out.println(attrs + "<br>");
initCtx.close();
It returns all this string :
{memberof=memberOf: CN=CMCanadaRD,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=iMngrCanadaRW,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=Domain Users,CN=Users,DC=dev,DC=test,DC=com,DC=ph, CN=Backup Operators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph, CN=Administrators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph}
How can i retrieve the Group named CMCanadaRW and CMCanadaRD on the Attribute?
Thanks -
how to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?
== This happened ==
Every time Firefox opened
== AlwaysCheck with your web mail service provider for help with that issue.
-
How to change CSS Class Dynamically for columns in a page
Hi ,
I have a page and i have columns like customer, bill to location, date from, date to..etc.
Once i save the records the columns shoulbd change to Bold(CSS Class = OraDataText). In simple way how to chane CSS class for an item dynamically to a specific value.
Can some one help me if came across this kind of a requirement.
Please send me sample code if any one has this....
Thanks,
MaheshI'm getting the following error while i implement the code in CO of Apply button.
oracle.apps.fnd.framework.OAException: java.lang.ClassCastException
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2637)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.lang.ClassCastException
at xxafp.oracle.apps.qp.pricelistrebate.webui.XxafpEepRebateCreateCO.processFormRequest(XxafpEepRebateCreateCO.java:98)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.lang.ClassCastException
at xxafp.oracle.apps.qp.pricelistrebate.webui.XxafpEepRebateCreateCO.processFormRequest(XxafpEepRebateCreateCO.java:98)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
Thanks,
Mahesh
Maybe you are looking for
-
Need_help_in_an_update_query
hi i have a requirement, wherein i have to update records in such a way that each student's marks are copied in a new column of the next student record. can anybody help me with it please regards ~aamir
-
Im working on Dreamweaver MX The code in my CSS sheetis: border: 1px solid #669999; background-attachment: scroll; background-image: url(/assets/pictures/lama_border1.gif); background-repeat: no-repeat; background-position: left top; There's grey squ
-
Passing Parameter to SAP Transaction via AppIntegrator
Hi, I created an AppIntegrator iView that calls a R/3 Transaction. The iView is running correctly. Now I want to pass a dynamic parameter to the Transaction so that it skips the first screen of the transaction. For this purpose there is the iView Par
-
Hi i am still using sybase ASE 12 and i performed projection on the jdoQL from my previous post : res.businessClass=='xxxxxxx' & (methodID=='5000') & relatedObjectKey == res.id' i got the following sql : SELECT t0_ID, t1_methodID FROM (SELECT DISTINC
-
How billing is calculated for European customers
Euro 29,99 plus 19 per cent tax equal Euro 35,69. So why charge Euro 36,89 ?